home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CEDITOR_ / CEDITORP.H1 < prev    next >
Text File  |  1990-06-04  |  1KB  |  50 lines

  1. /******************************************************************************
  2.  CEditorPane.h
  3.         Interface for the EditorPane Class
  4.  ******************************************************************************/
  5.  
  6. #define        _H_CEditorPane
  7.  
  8. #include    <Commands.h>
  9. #include    <CEditText.h>
  10. #include    "CEditorTask.h"
  11.  
  12. #define        cmdOffset        30000
  13. #define        cmdMyCut        (cmdOffset + cmdCut)
  14. #define        cmdMyCopy        (cmdOffset + cmdCopy)
  15. #define        cmdMyPaste        (cmdOffset + cmdPaste)
  16. #define        cmdMyClear        (cmdOffset + cmdClear)
  17. #define        cmdMyTyping        (cmdOffset + 50)
  18. #define        cmdMyDelete        (cmdOffset + 51)
  19.  
  20.  
  21. struct CEditorPane : CEditText
  22. {
  23.     struct CEditorTask        *itsCurrentTask;
  24.     int                        itsTaskIndex;
  25.     int                        typing;
  26.  
  27.     void IEditorPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  28.                     int aWidth, int aHeight,
  29.                     int aHEncl, int aVEncl,
  30.                     SizingOption aHSizing, SizingOption aVSizing,
  31.                     int aLineWidth, int theTaskIndex);
  32.                     
  33.     void UpdateMenus();
  34.  
  35.     void DoCommand(long theCommand);
  36.     void DoClick(Point hitPt, short modifierKeys, long when);
  37.     void DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  38.     
  39.     void GetSize(long *length, long *lines);
  40.  
  41.     void GetSelection(long *startSel, long *endSel);
  42.     void SetSelection(long startSel, long endSel);
  43.     void SelectAll(void);
  44.  
  45.     char GetCharacter(long position);
  46.     Boolean GetSelectionHandle(Handle *data);
  47.     void SetSelectionHandle(Handle data);
  48.  
  49.     void ResetTyping(void);
  50. };